
import { Alert } from 'antd';
import Marquee from 'react-fast-marquee';
import HtmlRender from '@/components/TableRender/HtmlRender';
/**
 * @description 首页的公告
 */

const text = '这是公告，建议盒子设置字体颜色，天气、时间、等设置inherit继承'
function Notice2({ title }) {

  return (
    <div className="notice-box" >
      <div className="notice-title">{title}</div>
      <Alert
        className='notice-content'
        message={
          <Marquee pauseOnHover play={false}>
            <HtmlRender text={text} />
          </Marquee>
        }
      />
    </div>
  )
}
export default Notice2